package com.etms.controller;

import com.etms.service.AccountsService;
import com.etms.vo.PageParmas;
import com.etms.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("account")
public class AccountController {
    @Autowired
    AccountsService accountsService;
    @PostMapping("getList")
    public Result getList(@RequestBody PageParmas pageParmas){
        return accountsService.findALLMsg(pageParmas);
    }

    @GetMapping("getPrice")
    public Result getPrice(){
        return accountsService.getPrice();
    }

    @GetMapping("daochu")
    public Result daochu(){
        return accountsService.daochu();
    }
}
